import request from '@/utils/request'
// 货品类型管理
export function AllShipper(params) {
  return request({
    url: 'api/owner/page',
    method: 'GET',
    params
  })
}
// 查询承运商
export function AllCarrier(params) {
  return request({
    url: 'api/carrier/page',
    method: 'GET',
    params
  })
}
// 查询盘点单
export function AllCheck(params) {
  return request({
    url: 'ips/check/pageDetail',
    method: 'GET',
    params
  })
}
// 新增货主
export function AddShipper(data) {
  return request({
    url: 'api/owner',
    method: 'POST',
    data
  })
}
// 库位库区树状数据
export function ReservoirThree(params) {
  return request({
    url: 'api/area/tree',
    method: 'GET',
    params
  })
}
// 货主批量关联库位
export function ShipperBatch(data) {
  return request({
    url: 'api/ownerLocation/batch',
    method: 'POST',
    data
  })
}
// 库位关联表
export function OwnerLocation(params) {
  return request({
    url: 'api/ownerLocation/pageDetail',
    method: 'GET',
    params
  })
}
